Next | Prev | Up | Top | Contents | Index
Checking XFS Filesystem Consistency With xfs_check
The filesystem consistency checking command for XFS filesystems is xfs_check. (fsck is used only for EFS filesystems.) Unlike fsck, xfs_check is not invoked automatically on system startup; xfs_check should be used only if you suspect a filesystem consistency problem. Before running xfs_check, the filesystem to be checked should be unmounted.
The command line for xfs_check is:
# xfs_check device
device is the device file for a disk partition or logical volume that contains an XFS filesystem, for example /dev/dsk/xlv/xlv0.
Unlike fsck, xfs_check does not repair any reported filesystem consistency problems; it only reports them. If xfs_check reports a filesystem consistency problem:
- If possible, contact the Silicon Graphics Technical Assistance Center for assistance (see the Release Notes for this product for more information).
- To attempt to recover from the problem, follow this procedure:
- Mount the filesystem using mount -r (read-only).
- Make a filesystem backup with xfsdump.
- Use mkfs to a make new filesystem on the same disk partition or XLV logical volume.
- Restore the files from the backup.
Next | Prev | Up | Top | Contents | Index